package com.glsc.ngateway.opmanage.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfiguration {

    //    @Value("${oa.service.username}")
//    private String userName;
//    @Value("${oa.service.password}")
//    private String passWord;
//    @Bean
//    public RequestInterceptor feignAuthenticationInterceptor() {
//        return new RequestInterceptor() {
//            @Override
//            public void apply(RequestTemplate requestTemplate) {
//                ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
//                HttpServletRequest request = attributes.getRequest();
//                System.out.println(request);
//            }
//        };
//    }
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }


}
